import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuardService } from '@core/auth/auth-guard.service';
import {fileListComponent} from "./file-list/file-list.component";
import {fileViewEditComponent} from "./file-list/edit/file-edit.component";
import {fileAddComponent} from "./file-list/edit/file-add.component";
import {fileViewEdittoComponent} from "./file-list/edit/file-editto.component";

import {fileList1Component} from "./file-list/1/file-list.component";
import {fileViewEdit1Component} from "./file-list/1/file-edit.component";
import {fileAdd1Component} from "./file-list/1/file-add.component";
import {fileViewEditto1Component} from "./file-list/1/file-editto.component";

const routes: Routes = [
  {
    path: 'file',
    children: [
      { path: '', component: fileListComponent },
      { path: 'add', component: fileAddComponent },
      { path: 'edit/:id', component: fileViewEditComponent },
      { path: 'editto/:id', component: fileViewEdittoComponent },

      { path: '1', component: fileList1Component },
      { path: '1/add', component: fileAdd1Component },
      { path: '1/edit/:id', component: fileViewEdit1Component },
      { path: '1/editto/:id', component: fileViewEditto1Component },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class fileRoutingModule { }
